package com.gdsdxy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gdsdxy.dto.ResultVo;
import com.gdsdxy.entity.Follow;

import java.util.List;

public interface IFollowService extends IService<Follow> {
    /**
     * 关注用户
     * @param followUserId 关注的用户的id
     * @return ResultVo
     */
    ResultVo follow(Long followUserId,Boolean isFollow);

    /**
     * 查询用户是否已经关注了此人
     * @param followUserId 关注的用户的id
     * @return ResultVo
     */
    ResultVo isFollow(Long followUserId);

    /**
     * 查询用户的关注列表
     * @param user_id 用户id
     * @return ResultVo
     */
    public List<Follow> selectFollow(Long user_id);

    /**
     * 根据用户id查询粉丝列表
     * @param followUserId
     * @return
     */
    public List<Follow> selectFans(Long followUserId);
}
